home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Format CD 42
/
Amiga Format AFCD42 (Issue 126, Aug 1999).iso
/
-serious-
/
programming
/
other
/
jikes
/
src
/
stream.cpp
< prev
next >
Wrap
C/C++ Source or Header
|
1999-05-14
|
29KB
|
822 lines
// $Id: stream.cpp,v 1.5 1999/03/09 14:37:17 shields Exp $
//
// This software is subject to the terms of the IBM Jikes Compiler
// License Agreement available at the following URL:
// http://www.ibm.com/research/jikes.
// Copyright (C) 1996, 1998, International Business Machines Corporation
// and others. All Rights Reserved.
// You must accept the terms of that agreement to use this software.
//
#include "config.h"
#include <ctype.h>
#include "stream.h"
#include "code.h"
#include "zip.h"
#include "symbol.h"
#include "control.h"
#include "semantic.h"
wchar_t *LexStream::KeywordName(int kind)
{
switch(kind)
{
case TK_abstract: return StringConstant::US_abstract; break;
case TK_boolean: return StringConstant::US_boolean; break;
case TK_break: return StringConstant::US_break; break;
case TK_byte: return StringConstant::US_byte; break;
case TK_case: return StringConstant::US_case; break;
case TK_catch: return StringConstant::US_catch; break;
case TK_char: return StringConstant::US_char; break;
case TK_class: return StringConstant::US_class; break;
case TK_const: return StringConstant::US_const; break;
case TK_continue: return StringConstant::US_continue; break;
case TK_default: return StringConstant::US_default; break;
case TK_do: return StringConstant::US_do; break;
case TK_double: return StringConstant::US_double; break;
case TK_else: return StringConstant::US_else; break;
case TK_extends: return StringConstant::US_extends; break;
case TK_false: return StringConstant::US_false; break;
case TK_final: return StringConstant::US_final; break;
case TK_finally: return StringConstant::US_finally; break;
case TK_float: return StringConstant::US_float; break;
case TK_for: return StringConstant::US_for; break;
case TK_goto: return StringConstant::US_goto; break;
case TK_if: return StringConstant::US_if; break;
case TK_implements: return StringConstant::US_implements; break;
case TK_import: return StringConstant::US_import; break;
case TK_instanceof: return StringConstant::US_instanceof; break;
case TK_int: return StringConstant::US_int; break;
case TK_interface: return StringConstant::US_interface; break;
case TK_long: return StringConstant::US_long; break;
case TK_native: return StringConstant::US_native; break;
case TK_new: return StringConstant::US_new; break;
case TK_null: return StringConstant::US_null; break;
case TK_package: return StringConstant::US_package; break;
case TK_private: return StringConstant::US_private; break;
case TK_protected: return StringConstant::US_protected; break;
case TK_public: return StringConstant::US_public; break;
case TK_return: return StringConstant::US_return; break;
case TK_short: return StringConstant::US_short; break;
case TK_static: return StringConstant::US_static; break;
case TK_strictfp: return StringConstant::US_strictfp; break;
case TK_super: return StringConstant::US_super; break;
case TK_switch: return StringConstant::US_switch; break;
case TK_synchronized: return StringConstant::US_synchronized; break;
case TK_this: return StringConstant::US_this; break;
case TK_throw: return StringConstant::US_throw; break;
case TK_throws: return StringConstant::US_throws; break;
case TK_transient: return StringConstant::US_transient; break;
case TK_true: return StringConstant::US_true; break;
case TK_try: return StringConstant::US_try; break;
case TK_void: return StringConstant::US_void; break;
case TK_volatile: return StringConstant::US_volatile; break;
case TK_while: return StringConstant::US_while; break;
case TK_PLUS_PLUS: return StringConstant::US_PLUS_PLUS; break;
case TK_MINUS_MINUS: return StringConstant::US_MINUS_MINUS; break;
case TK_EQUAL_EQUAL: return StringConstant::US_EQUAL_EQUAL; break;
case TK_LESS_EQUAL: return StringConstant::US_LESS_EQUAL; break;
case TK_GREATER_EQUAL: return StringConstant::US_GREATER_EQUAL; break;
case TK_NOT_EQUAL: return StringConstant::US_NOT_EQUAL; break;
case TK_LEFT_SHIFT: return StringConstant::US_LEFT_SHIFT; break;
case TK_RIGHT_SHIFT: return StringConstant::US_RIGHT_SHIFT; break;
case TK_UNSIGNED_RIGHT_SHIFT: return StringConstant::US_UNSIGNED_RIGHT_SHIFT; break;
case TK_PLUS_EQUAL: return StringConstant::US_PLUS_EQUAL; break;
case TK_MINUS_EQUAL: return StringConstant::US_MINUS_EQUAL; break;
case TK_MULTIPLY_EQUAL: return StringConstant::US_MULTIPLY_EQUAL; break;
case TK_DIVIDE_EQUAL: return StringConstant::US_DIVIDE_EQUAL; break;
case TK_AND_EQUAL: return StringConstant::US_AND_EQUAL; break;
case TK_OR_EQUAL: return StringConstant::US_OR_EQUAL; break;
case TK_XOR_EQUAL: return StringConstant::US_XOR_EQUAL; break;
case TK_REMAINDER_EQUAL: return StringConstant::US_REMAINDER_EQUAL; break;
case TK_LEFT_SHIFT_EQUAL: return StringConstant::US_LEFT_SHIFT_EQUAL; break;
case TK_RIGHT_SHIFT_EQUAL: return StringConstant::US_RIGHT_SHIFT_EQUAL; break;
case TK_UNSIGNED_RIGHT_SHIFT_EQUAL: return StringConstant::US_UNSIGNED_RIGHT_SHIFT_EQUAL; break;
case TK_OR_OR: return StringConstant::US_OR_OR; break;
case TK_AND_AND: return StringConstant::US_AND_AND; break;
case TK_PLUS: return StringConstant::US_PLUS; break;
case TK_MINUS: return StringConstant::US_MINUS; break;
case TK_NOT: return StringConstant::US_NOT; break;
case TK_REMAINDER: return StringConstant::US_REMAINDER; break;
case TK_XOR: return StringConstant::US_XOR; break;
case TK_AND: return StringConstant::US_AND; break;
case TK_MULTIPLY: return StringConstant::US_MULTIPLY; break;
case TK_OR: return StringConstant::US_OR; break;
case TK_TWIDDLE: return StringConstant::US_TWIDDLE; break;
case TK_DIVIDE: return StringConstant::US_DIVIDE; break;
case TK_GREATER: return StringConstant::US_GREATER; break;
case TK_LESS: return StringConstant::US_LESS; break;
case TK_LPAREN: return StringConstant::US_LPAREN; break;
case TK_RPAREN: return StringConstant::US_RPAREN; break;
case TK_LBRACE: return StringConstant::US_LBRACE; break;
case TK_RBRACE: return StringConstant::US_RBRACE; break;
case TK_LBRACKET: return StringConstant::US_LBRACKET; break;
case TK_RBRACKET: return StringConstant::US_RBRACKET; break;
case TK_SEMICOLON: return StringConstant::US_SEMICOLON; break;
case TK_QUESTION: return StringConstant::US_QUESTION; break;
case TK_COLON: return StringConstant::US_COLON; break;
case TK_COMMA: return StringConstant::US_COMMA; break;
case TK_DOT: return StringConstant::US_DOT; break;